/*
 * @(#)OfflineStateInfoDao.java   1.0  2021年11月17日
 * 
 * Copyright (c)	2014-2020. All Rights Reserved.	GuangZhou hhmk Technology Company LTD.
 */
package com.swift.dts.dao;

import java.util.List;

import com.swift.dts.dao.model.OfflineState;
import com.swift.dts.dao.model.OfflineStateInfo;
import com.swift.dts.dao.model.SynObjectKey;

/**
 * 添加说明 
 * @author zhengjiajin
 * @version 1.0 2021年11月17日
 */
public interface OfflineStateInfoDao {

    public void save(OfflineStateInfo offlineStateInfo);
    
    public List<OfflineStateInfo> list();
    
    public List<OfflineStateInfo> list(String dataSource,String destination,Integer state);
    
    public void delete(SynObjectKey synObjectKey);
    
    public OfflineStateInfo get(SynObjectKey synObjectKey);
    
    public void updateState(SynObjectKey synObjectKey,OfflineState state, String errorRem);
    
    public void updatePercent(SynObjectKey synObjectKey,Integer successNum,Integer countNum,Double percent);
}
